package org.javaboy.vhr.mapper;

import org.javaboy.vhr.bean.Department;

import java.util.List;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);
    //查询部门
    List<Department> getAllDepartmentsByParentId(Integer pid);
    //添加部门
    void addDep(Department dep);
    //删除部门
    void deleteDepById(Department dep);
    //获取所有子部门
    List<Department> getAllDepartmentsWithOutChildren();

}